package com.atguigu.edu.flume.utils;

import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;

/**
 * @ClassName: JSONUtil
 * @Author: yuanzf
 * @Date: 2022/7/20 18:09
 * @Description
 */
public class JSONUtil {

    public static boolean isJSONValidate(String log){
        try {
            JSONObject.parseObject(log);
            return true;
        }catch (JSONException e){
            return false;
        }
    }

}
